vulkan: Don't create more than one render object
authorBenjamin Otte <otte@redhat.com>
Fri, 9 Dec 2016 05:13:14 +0000 (06:13 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 9 Dec 2016 17:35:52 +0000 (18:35 +0100)
commit6525fbe90fefda13918889f9dd3c5261e83bdb4f
treeb976b2938a0f0e169ac89347de07167052fdea85
parentb3388aaca992564b1b244c1df5adb2859a15bd57
vulkan: Don't create more than one render object

By creating unlimited render objects, we would never wait on the GPU.

This would mean that if the GPU was the bottleneck, we would fill its
queue with render commands faster than it could process them.

And because the nvidia binary driver and my code work surprisingly well
and bugfree, this lead to exhaustion of RAM. I had 50GB of swap
configured and my hard disk was quicker as swap storage than my GPU was
at processing the commands, so stuff still filled up.

At that point my computer became rather unresponsive and I decided to
reboot it, so I that could write this patch.
gsk/gskvulkanrenderer.c